#include <iostream>
#include "ShareMemory.hpp"
#include "test.hpp"
#include <string.h>
#include "Time.hpp"



int main()
{
    shm.GetShm();
    shm.AttachShm();

    struct data* image = (struct data*)shm.GetAddr();
    char ch = 'A';
    while(ch <= 'Z')
    {
        strcpy(image->status,"最新");
        strcpy(image->lasttime,GetCurrTime().c_str());
        strcpy(image->image,"xxxxxx");
        sleep(3);
    }

    shm.DetachShm();
    return 0;
}
